import Pagination from "@/views/common/page";
export const paginationMixins = {
    components: { Pagination },
    data() {
        return {
            pageNum: 1,
            pageSize: 20,
            pageSizes: [10, 20, 50, 100, 300],
            total: 0,
        };
    },
    methods: {
        pagination({ page, limit }) {
            this.pageNum = page;
            this.pageSize = limit;
            this.init && this.init();
        },
    },
};